package com.bestcem.xm.wallet.grpc.client.converter.strategy;

import com.bestcem.xm.wechat.grpc.v1.enums.ExpireTypeEnum;
import com.bestcem.xm.wechat.grpc.v1.services.GenerateMiniProgramUrlSchemeRequest;

/**
 * 微信服务转换类-自定义转换
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/5/13 11:50
 */
public interface WalletBpWechatGrpcConvertStrategy {

    default ExpireTypeEnum.ExpireType expireTypeConveter(Integer value) {
        return GenerateMiniProgramUrlSchemeRequest.newBuilder().setExpireTypeValue(value).getExpireType();
    }

}
